<div class="green-borders" id="grid-rests">
	<? $i = 0; ?>
	<? foreach( $rests as $rest ): ?>
		<? $rest_url = CHtml::normalizeUrl(array('menu/index','rest'=>$rest->id)); ?>
		<? $i++; ?>
		<? if( $i == 1 ) { ?>
			<div class="float-holder">
		<? } ?>
				<div class="rest-block-grid">
					<a style="background: url('<?=$rest->img?>') no-repeat center center;" href="<?=$rest_url?>" class="rest-logo"></a>
					<br>
					<a href="<?=$rest_url?>" class="green_h3"><?=$rest->name?></a>
				</div>
		<? if( $i == 4 ) { ?>
			<? $i = 0; ?>
				<div class="clean"></div>
			</div>
		<? } ?>
	<? endforeach; ?>
</div>